﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Touch2Like.DAL;
using Touch2Like.Model;
using Touch2Like.SharedLibrary;

namespace Touch2Like.Web.Product
{
    public partial class OrderComplete : System.Web.UI.Page
    {
//        protected void Page_Load(object sender, EventArgs e)
//        {
//            if (WebUtility.UserGUID == "0")
//            {
//                Response.Redirect("/Customer/signin.aspx?next=" + Server.UrlEncode("/Product/OrderComplete.aspx?orderid=" + Request["orderid"]));
//            }

//            this.Master.CurrentPage = "NFCStore";

//            if (!IsPostBack)
//            {
//                if (!string.IsNullOrEmpty(Request["orderid"]))
//                {
//                    OrderDAL order = new OrderDAL();
//                    OrderInfo info = order.GetByID(Convert.ToInt32(Utility.Encryption.Decrypt(Request["orderid"])));

//                    if (info != null)
//                    {
//                        info.OrderStatus = 2;
//                        order.Update(info);

//                        lb_Msg.Text = "Your order is received, we will send your product soon.<br /> You can view your orders at this <a href='/Customer/Orders.aspx'>link</a>.";
//                    }
//                }
//            }
//        }
    }
}